$import( "SmitearWebGL.Objects.Parser.Collada.DaeMesh" );

SmitearWebGL.Objects.Parser.Collada.DaeConvexMesh = SmitearWebGL.Objects.Parser.Collada.DaeMesh.extend(
{
	/******** constructor ********/

	init : function( document, geometry, node )
	{
		this.convex_hull_off = "";
		this.isHull = "";

		this._super( document, geometry, node );
		this._registClass( "SmitearWebGL.Objects.Parser.Collada.DaeConvexMesh" );
	}
	,
	read : function( node )
	{
		$THROW( node.localName == SmitearWebGL.Objects.Parser.Collada.Const.DAE_CONVEX_MESH_ELEMENT,
		"expected a '" + SmitearWebGL.Objects.Parser.Collada.Const.DAE_CONVEX_MESH_ELEMENT + "' element" );

		this.convex_hull_off = this.getAttribute( node, SmitearWebGL.Objects.Parser.Collada.Const.DAE_CONVEX_HULL_OF_ATTRIBUTE, true );

		this.isHull = ( this.convex_hull_off.length > 0 );
		if( this.isHull )
		return;

		this._super( node );
	}
}
);